<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.tjsinfo.tjsoa.worklog.vo.WorkLogMain"%>
<%@page import="com.tjsinfo.tjsoa.worklog.vo.WorkLogExamine"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <base href="<%=basePath%>"/>
    
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>粮油集团办公自动化协作平台</title>
	<link href="style/txlz7.css" rel="stylesheet" type="text/css" />
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style>
		.aaa{
			background:url(images/icon1000.gif) no-repeat 0 11px; padding-left: 8px;
		}
	</style>
		<script type="text/javascript">
	window.onload=fckimg;
		function fckimg()
		{
		 var array =	document.getElementsByTagName('li');
		 for(var i=0;i<array.length;i++)
		 {
		 	
		 var ula = array[i];
		 ula.className='aaa';
		 }
		}
			function back()
		{
				history.back();
		}
	</script>
  </head>
  
  <body>
  	<%
  	WorkLogMain workLogMain = (WorkLogMain)request.getAttribute("plan");
  	
  	%>
    <div id="right" style="height: 93%">
      <table width="100%" border="0" cellspacing="0" cellpadding="0" >
          <tr>
            <td background="images/contacttitle01.gif" width="28" height="26"></td>
            <td class="td1px">工作日志查看</td>
            <td background="images/contacttitle03.gif" width="72" height="26">&nbsp;</td>
          </tr>
      </table>
      <div class="contact_content">
         <div class="tab_add">
            <form id="form1" name="form1" method="post" action="">
            <table width="100%" border="0" cellspacing="0" class="tab_add01">
                <tr>
                  <td>
                  </td>
                </tr>
                <tr>
                  <td>日志原文：</td>
                </tr>
                <tr>
                  <td>
                    <table width="99%" border="0" cellspacing="0" cellpadding="0" class="texttab">
                      <tr>
                        <td>
                        <div style="height:150px;width:99%;overflow:auto;padding-left:8px"><%=workLogMain.getContent() %></div>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
                <tr>
                  <td>领导批示意见：</td>
                </tr>
                <tr>
                  <td>
                  <div style="height:150px;width:98%;overflow:auto;padding-left:8px;border: 1px #AFACAC solid;">
                  	<%
                  		Iterator  iterable = workLogMain.getWorkLogExamines().iterator();
                  		while(iterable.hasNext())
                  		{
                  			WorkLogExamine workLogExamine = (WorkLogExamine)iterable.next();
                  			
                  			if(workLogExamine.getExamineContent() != null && !"".equals(workLogExamine.getExamineContent()))
                  			{
                  				out.print(workLogExamine.getTjsUser().getUserName() +"的审批意见:"+  workLogExamine.getExamineContent()+"<br/>");	
                  			}
                  				
                  		}
                  	%>
                  	</div>
                  </td>
                </tr>
                <tr>
                  <td height="50px">&nbsp;</td>
                </tr>
                <tr>
                  <th><div align="center">
              		<%
              			Integer messageid = (Integer)request.getAttribute("messageid");
              			if(messageid ==0)
              			{
              		%>
              			<a href="<%=basePath%>tjsinfo/tjsoa/worklog/workLoglistmode.do?type=<%=workLogMain.getType() %>" ><img src="images/fanhui.gif" width="71"
												height="21" border="0" /> </a>
              		<% 		
              			}
              			else
              			{
              		%>
              			<a href="<%=basePath%>tjsinfo/tjsoa/system/main.do" ><img src="images/fanhui.gif" width="71"
												height="21" border="0" /> </a>
              		<% 	
              			}
              		 %>
                   
                  </div></th>
                </tr>
              </table>
              </form>
          </div>

         
      </div>
</div>
  </body>
</html>
